@mixin line-hight($number) {
    height: $number;
    line-height: $number;
}
@mixin bg($bg) {
    background: url("../../../../#{$bg}") 100% 100% no-repeat;
    background-size: cover;
}
@mixin home_lg() {
    .table {
        width: 100%;
        height: 442px;
        @include bg("assets/images/contactUs_table_bg.png");
    }
    .contactUs_list {
        box-sizing: border-box;
        padding-bottom: 50px;
    }
    .collapse_box {
        cursor: pointer;
        max-width: 1200px;
        margin: 0 auto;
        margin-top: 20px;
        background: #f8f8f8;
        padding-bottom: 20px;
        transition: 5s;
        h3 {
            width: auto;
            @include line-hight(79px);
            margin: 0 10px;
            font-size: 24px;
            color: #aa171f;
            border-bottom: 1px solid #dddddd;
            padding: 0 30px;
            a {
                display: inline;
                font-size: 18px;
                color: #ac0000;
                float: right;
                font-weight: 400;
            }
        }
        .collapse_list {
            box-sizing: border-box;
            padding: 0 45px 0 45px;
            position: relative;
            margin-top: 20px;
            transition: 1s;
            margin-top: 30px;
            .rotate {
                position: absolute;
                right: 30px;
                top: 15px;
                width: 21px;
                height: 21px;
            }
            .collapse_item {
                float: left;
                display: flex;
                align-items: center;
                font-size: 16px;
                color: #4e4e4e;
                padding-right: 60px;
                @include line-hight(60px);
                img {
                    width: 25px;
                    height: 25px;
                }
                div {
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                    display: inline-block;
                }
            }
        }
        .map {
            // display: none;
            width: auto;
            height: auto;
            // background: #000;
            margin: 0 45px 0px 45px;
            font-size: 16px;
        }
    }
    .collapse_active {
        .map {
            display: block;
        }
    }
    .details {
        position: relative;
        h1 {
            max-width: 1200px;
            margin: 0 auto;
            font-size: 30px;
            font-family: Microsoft YaHei;
            font-weight: 400;
            color: #ac0000;
            text-align: center;
            -webkit-box-sizing: border-box;
            box-sizing: border-box;
            // padding-top: 0.45px;
            // padding-bottom: 0.36px;
            font-weight: bold;
        }
        .return {
            max-width: 1200px;
            margin: 0 auto;
            @include line-hight(80px);
            cursor: pointer;
            min-width: 100px;
            display: block;
            text-align: right;
            font-size: 16px;
            font-family: Microsoft YaHei;
            font-weight: 400;
            color: #666;
            img {
                width: 7px;
                height: 13px;
                margin-right: 15px;
            }
        }
        .description {
            max-width: 1200px;
            margin: 0 auto;
            font-size: 16px;
            color: #666;
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 60px;
            .img {
                width: 520px;
                height: 380px;

                // display: flex;
                // justify-content: center;
                // align-items: center;
                // border: 1px solid #f5f5f5;
                img {
                    max-width: 100%;
                    max-height: 100%;
                    // box-shadow: 0px 18px 51px 0px rgba(171, 171, 171, 1);
                }
            }

            .text {
                width: 100%;
                height: 390px;
                overflow-y: auto;
                line-height: 30px;
                margin-left: 50px;
                // border: 1px solid #f5f5f5;
                box-sizing: border-box;
                /* font-weight: 600; */
                color: #333;
                font-size: 16px;
            }
        }
        .message {
            max-width: 1200px;
            margin: 0 auto;
            margin-top: 70px;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;

            h5 {
                color: #ac0000;
                font-size: 30px;
                text-align: center;
            }
            .message_box {
                width: 645px;
                height: 354px;
                display: flex;
                flex-direction: column;
                background-color: #f8f8f8;
                box-sizing: border-box;
                padding: 54px 0;
                box-shadow: 0px 18px 51px 0px rgba(171, 171, 171, 0.3);
                .input_box {
                    display: flex;
                    justify-content: space-around;
                    .input_box_left {
                        display: flex;
                        flex-direction: column;
                        justify-content: space-between;
                        // margin-top: .15px;
                        input {
                            background-color: #f8f8f8;
                            width: 298px;
                            height: 52px;
                            border: 1px solid #c2c2c2;
                            margin-top: 14px;
                            padding-left: 10px;
                        }
                    }
                    .input_box_right {
                        display: flex;
                        flex-direction: column;
                        textarea {
                            margin-top: 14px;
                            width: 266px;
                            height: 118px;
                            background-color: #f8f8f8;
                            box-sizing: border-box;
                            padding-top: 18px;
                            padding-left: 18px;
                        }
                        .message_submit {
                            width: 266px;
                            @include line-hight(52px);
                            font-size: 24px;
                            text-align: center;
                            color: #fff;
                            margin-top: 14px;
                            background-color: #aa171f;
                        }
                    }
                }
            }
            .info_message {
                box-shadow: 0px 18px 51px 0px rgba(171, 171, 171, 0.3);
                overflow: hidden;
                background-color: #f8f8f8;
                width: 100%;
                height: 354px;
                box-sizing: border-box;
                padding: 54px 0px;
                display: flex;
                flex-direction: column;
                .info_tu {
                    max-width: 200px;
                    max-height: 200px;
                    border-radius: 50%;
                    overflow: hidden;
                    margin-top: 30px;
                }
                .info_message_box {
                    display: flex;
                    justify-content: space-around;
                    height: 200px;
                    width: 100%;
                    .info-item-box {
                        width: 100%;
                        margin-top: 60px;
                        display: flex;
                       align-items: center;
                        justify-content: space-around;
                        .info-item {
                            width: 310px;
                            display: flex;
                            justify-content: flex-start;
                            align-items: center;
                            flex-wrap: wrap;
                            color: #666;

                            img {
                                margin-right: 10px;
                            }
                            .name {
                                white-space: nowrap;
                                font-size: 24px;
                            }
                            .level {
                                font-size: 16px;
                                margin-top: 10px;
                            }
                            .text {
                                font-size: 16px;
                            }
                        }
                    }
                }
            }
        }
        .news {
            margin-top: 60px;
            width: 100%;
            background-color: #f8f8f8;
            h1 {
                @include line-hight(160px);
            }
            .news_box {
                max-width: 1200px;
                margin: 0 auto;
                .new_item {
                    display: flex;
                    justify-content: space-between;
                    box-sizing: border-box;
                    padding: 40px 30px;
                    background: #ffffff;
                    margin-bottom: 30px;
                    img {
                        width: 342px;
                        height: 215px;
                    }
                    .imgBox {
                        width: 342px;
                        height: 215px;
                        background-size: cover;
                        background-position: center;
                    }
                    .desc_box {
                        max-width: 760px;
                        flex: 1;
                        display: flex;
                        flex-direction: column;
                        justify-content: space-between;
                        padding-left: 30px;
                        .new_title {
                            font-size: 24px;
                            color: #333333;
                            font-weight: 400;
                            @include line-hight(60px);
                            display: -webkit-box;
                            -webkit-box-orient: vertical;
                            -webkit-line-clamp: 1;
                            overflow: hidden;
                        }
                        .new_text {
                            max-height: 120px;
                            color: #666;
                            font-size: 16px;
                            line-height: 30px;
                            display: -webkit-box;
                            -webkit-box-orient: vertical;
                            -webkit-line-clamp: 4;
                            overflow: hidden;
                        }
                        .new_time {
                            color: #999999;
                            font-size: 16px;
                            @include line-hight(40px);
                        }
                    }
                }
            }
            .el-pagination {
                text-align: center;
            }
        }
    }
    .newsDetails {
        max-width: 1200px;
        margin: 0 auto;
        position: relative;
        overflow: hidden;
        h1 {
            // @include line-hight(107px);
            font-size: 20px;
            font-family: Microsoft YaHei;
            font-weight: 400;
            color: #333;
            text-align: center;
            box-sizing: border-box;
            padding-right: 100px;

            padding-top: 20px;
            padding-bottom: 36px;
            font-weight: bold;
            margin-top: 110px;
        }
        .return {
            cursor: pointer;
            width: 100px;
            position: absolute;
            @include line-hight(110px);
            right: 0;
            top: 0px;
            font-size: 16px;
            font-family: Microsoft YaHei;
            font-weight: 400;
            color: #666;
            img {
                width: 7px;
                height: 13px;
            }
        }
        .content {
            width: 100%;
            font-size: 16px;
            padding-bottom: 30px;
        }
    }
}
@mixin home_sm() {
    .contactUs {
        background: #f8f8f8;
        .table {
            @include bg("assets/images/contactUs_table_bg.png");
        }
    }
    .contactUs_list {
        box-sizing: border-box;
        padding-bottom: 0.5rem;
    }
    .collapse_box {
        cursor: pointer;
        // max-width: 12rem;
        margin: 0.2rem 0.3rem;

        background: #fff;
        padding-bottom: 0.2rem;
        transition: 5s;
        h3 {
            width: auto;
            @include line-hight(0.79rem);
            margin: 0 0.1rem;
            font-size: 0.26rem;
            color: #aa171f;
            border-bottom: 0.01rem solid #dddddd;
            padding: 0 0.3rem;
            a {
                display: inline;
                font-size: 0.26rem;
                color: #ac0000;
                float: right;
                font-weight: 400;
            }
        }
        .collapse_list {
            box-sizing: border-box;
            padding: 0 0.45rem 0 0.45rem;
            position: relative;
            margin-top: 0.2rem;
            transition: 1s;
            margin-top: 0.3rem;
            display: flex;
            flex-direction: column;
            .rotate {
                position: absolute;
                right: 0.3rem;
                top: 0.15rem;
                width: 0.21rem;
                height: 0.21rem;
            }
            .collapse_item {
                // float: left;
                display: flex;
                justify-self: flex-start;
                align-items: center;
                font-size: 0.24rem;
                color: #4e4e4e;
                min-height: 0.6rem;
                // padding-right: 0.6rem;
                // @include line-hight(0.6rem);
                img {
                    width: 0.25rem;
                    height: 0.25rem;
                }
                span {
                    display: inline-block;
                    min-width: 0.8rem;
                    margin: 0 0.1rem;
                }
                div {
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                    display: inline-block;
                }
            }
        }
        .map {
            // display: none;
            width: auto;
            height: auto;
            // background: #000;
            margin: 0 0.45rem 0rem 0.45rem;
            font-size: 0.16rem;
        }
    }
    .collapse_active {
        .map {
            display: block;
        }
    }
    .details {
        position: relative;
        h1 {
            max-width: 12rem;
            margin: 0 auto;
            font-size: 0.3rem;
            font-family: Microsoft YaHei;
            font-weight: 400;
            color: #ac0000;
            text-align: center;
            -webkit-box-sizing: border-box;
            box-sizing: border-box;
            // padding-top: 0.45rem;
            // padding-bottom: 0.36rem;
            font-weight: bold;
        }
        .return {
            box-sizing: border-box;
            padding: 0 0.3rem;
            @include line-hight(0.8rem);
            cursor: pointer;
            min-width: 1rem;
            display: block;
            text-align: right;
            font-size: 0.16rem;
            font-family: Microsoft YaHei;
            font-weight: 400;
            color: #666;
            img {
                width: 0.07rem;
                height: 0.13rem;
                margin-right: 0.15rem;
            }
        }
        .description {
            box-sizing: border-box;
            padding: 0 0.3rem;
            font-size: 0.16rem;
            color: #666;
            display: flex;
            align-items: center;
            flex-direction: column;
            justify-content: center;
            margin-top: 0.6rem;
            img {
                width: 5.2rem;
                height: 3.8rem;
                box-shadow: 0px 18px 51px 0px rgba(171, 171, 171, 1);
            }
            .text {
                width: 6.4rem;
                // height: 3.8rem;
                margin-top: 0.7rem;
            }
        }
        .message {
            max-width: 12rem;
            margin: 0 auto;
            margin-top: 0.7rem;
            display: flex;
            flex-direction: column;
            // justify-content: center;
            align-items: center;
            h5 {
                color: #ac0000;
                font-size: 0.3rem;
                text-align: center;
            }
            .message_box {
                width: 100%;
                height: 3.54rem;
                display: flex;
                flex-direction: column;
                background-color: #f8f8f8;
                box-sizing: border-box;
                padding: 0.54rem 0;
                box-shadow: 0px 18px 51px 0px rgba(171, 171, 171, 0.3);
                .input_box {
                    display: flex;
                    justify-content: space-around;
                    .input_box_left {
                        display: flex;
                        flex-direction: column;
                        justify-content: space-between;
                        // margin-top: .15rem;
                        input {
                            background-color: #f8f8f8;
                            width: 2.98rem;
                            height: 0.52rem;
                            border: 0.01rem solid #c2c2c2;
                            margin-top: 0.14rem;
                            padding-left: 0.1rem;
                        }
                    }
                    .input_box_right {
                        display: flex;
                        flex-direction: column;

                        textarea {
                            margin-top: 0.14rem;
                            width: 2.66rem;
                            height: 1.18rem;
                            background-color: #f8f8f8;
                            box-sizing: border-box;
                            padding-top: 0.18rem;
                            padding-left: 0.18rem;
                        }
                        .message_submit {
                            width: 2.66rem;
                            @include line-hight(0.52rem);
                            font-size: 0.24rem;
                            text-align: center;
                            color: #fff;
                            margin-top: 0.14rem;
                            background-color: #aa171f;
                        }
                    }
                }
            }
            .info_message {
                box-shadow: 0px 18px 51px 0px rgba(171, 171, 171, 0.3);
                overflow: hidden;
                background-color: #f8f8f8;
                width: 100%;
                height: 2.2rem;
                box-sizing: border-box;
                padding: 0.54rem 0rem;
                display: flex;
                flex-direction: column;
                .info_tu {
                    max-width: 2rem;
                    max-height: 2rem;
                    border-radius: 50%;
                    overflow: hidden;
                    margin-top: 0.3rem;
                }
                .info_message_box {
                    display: flex;
                    justify-content: space-around;
                    box-sizing: border-box;
                    padding: 0 0.3rem;
                    .info-item-box {
                        flex: 1;
                        margin-left: 0.3rem;
                        margin: 0.3rem 0.2rem 0 0.2rem;
                        display: flex;
                        align-items: center;
                        justify-content: space-around;
                        .info-item {
                            // width: 3.1rem;
                            display: flex;
                            justify-content: flex-start;
                            align-items: center;
                            flex-wrap: wrap;
                            color: #666;

                            img {
                                width: 0.3rem;
                                margin-right: 0.1rem;
                            }
                            .name {
                                white-space: nowrap;
                                font-size: 0.24rem;
                            }
                            .level {
                                font-size: 0.16rem;
                                margin-top: 0.1rem;
                            }
                            .text {
                                font-size: 0.16rem;
                            }
                        }
                    }
                }
            }
        }
        .news {
            margin-top: 0.3rem;
            width: 100%;
            background-color: #f8f8f8;
            h1 {
                @include line-hight(1.6rem);
            }
            .news_box {
                max-width: 12rem;
                margin: 0 auto;
                .new_item {
                    display: flex;
                    justify-content: space-between;
                    box-sizing: border-box;
                    padding: 0.4rem 0.3rem;
                    background: #ffffff;
                    margin-bottom: 0.3rem;
                    img {
                        width: 3.42rem;
                        height: 2.15rem;
                    }
                    .imgBox {
                        width: 3.42rem;
                        height: 2.15rem;
                        background-size: cover;
                        background-position: center;
                    }
                    .desc_box {
                        // width: 7.6rem;
                        flex: 1;
                        margin-left: 0.15rem;
                        display: flex;
                        flex-direction: column;
                        justify-content: space-between;
                        .new_title {
                            font-size: 0.24rem;
                            color: #333333;
                            font-weight: 400;
                            @include line-hight(0.6rem);
                            display: -webkit-box;
                            -webkit-box-orient: vertical;
                            -webkit-line-clamp: 1;
                            overflow: hidden;
                        }
                        .new_text {
                            color: #666;
                            font-size: 0.16rem;
                        }
                        .new_time {
                            color: #999999;
                            font-size: 0.16rem;
                            @include line-hight(0.4rem);
                        }
                    }
                }
            }
            .el-pagination {
                text-align: center;
            }
        }
    }
    .newsDetails {
        max-width: 12rem;
        margin: 0 auto;
        position: relative;
        overflow: hidden;
        h1 {
            // @include line-hight(1.07rem);
            padding-top: .2rem;
            padding-bottom: .36rem;
            font-size: 0.2rem;
            font-family: Microsoft YaHei;
            font-weight: 400;
            color: #333;
            text-align: center;
            box-sizing: border-box;
            margin-top: 1.1rem;
            font-weight: bold;
            // padding-right: 1rem;
        }
        .return {
            box-sizing: border-box;
            padding: 0 0.3rem;
            cursor: pointer;
            position: absolute;
            right: 0;
            top: 0rem;
            font-size: 0.16rem;
            font-family: Microsoft YaHei;
            font-weight: 400;
            color: #666;
            @include line-hight(1.1rem);
            img {
                width: 0.07rem;
                height: 0.13rem;
            }
        }
        .content {
            box-sizing: border-box;
            padding: 0 0.3rem;
            padding-bottom: 0.2rem;
            width: 100%;
            font-size: 0.16rem;
        }
    }
}
//* 设备宽度大于 320px 小于 640px */

@media only screen and (min-width: 320px) and (max-width: 640px) {
    @include home_sm;
}
@media only screen and (min-width: 641px) and (max-width: 1199px) {
    @include home_lg;
    .details {
        .message {
            max-width: 1200px;
            margin: 0 auto;
            margin-top: 70px;
            display: flex;
            flex-wrap: wrap;
            // justify-content: space-between;
            flex-direction: column;
            h5 {
                color: #ac0000;
                font-size: 30px;
                text-align: center;
            }
            .message_box {
                width: 100%;
                display: flex;
                flex-direction: column;
                background-color: #f8f8f8;
                box-sizing: border-box;
                padding: 54px 0;
                box-shadow: 0px 18px 51px 0px rgba(171, 171, 171, 0.3);
                .input_box {
                    display: flex;
                    justify-content: space-around;
                    .input_box_left {
                        display: flex;
                        flex-direction: column;
                        justify-content: space-between;
                        // margin-top: .15px;
                        input {
                            background-color: #f8f8f8;
                            width: 298px;
                            height: 52px;
                            border: 1px solid #c2c2c2;
                            margin-top: 14px;
                            padding-left: 10px;
                        }
                    }
                    .input_box_right {
                        display: flex;
                        flex-direction: column;
                        textarea {
                            margin-top: 14px;
                            width: 266px;
                            height: 118px;
                            background-color: #f8f8f8;
                            box-sizing: border-box;
                            padding-top: 18px;
                            padding-left: 18px;
                        }
                        .message_submit {
                            width: 266px;
                            @include line-hight(52px);
                            font-size: 24px;
                            text-align: center;
                            color: #fff;
                            margin-top: 14px;
                            background-color: #aa171f;
                        }
                    }
                }
            }
            .info_message {
                width: 100%;
                box-shadow: 0px 18px 51px 0px rgba(171, 171, 171, 0.3);
                overflow: hidden;
                background-color: #f8f8f8;
                box-sizing: border-box;
                padding: 54px 0px;
                display: flex;
                flex-direction: column;
                .info_tu {
                    max-width: 250px;
                    max-height: 250px;
                    border-radius: 50%;
                    overflow: hidden;
                    margin: 0;
                    // margin-top: 60px;
                }
                .info_message_box {
                    display: flex;
                    justify-content: space-between;
                    margin: 0 auto;
                    min-width: 600px;
                    .info-item-box {
                        margin-top: 0px;
                        padding: 30px 0;
                        display: flex;
                        align-items: center;
                        justify-content: space-around;

                        .info-item {
                            width: 310px;
                            display: flex;
                            justify-content: flex-start;
                            align-items: center;
                            flex-wrap: wrap;
                            color: #666;

                            img {
                                margin-right: 10px;
                            }
                            .name {
                                white-space: nowrap;
                                font-size: 24px;
                            }
                            .level {
                                font-size: 16px;
                                margin-top: 10px;
                            }
                            .text {
                                font-size: 16px;
                            }
                        }
                    }
                }
            }
        }
        .newsDetails{
            margin: 0 30px;
        }
    }
    .newsDetails {
        margin: 0 30px;
    }
}
@media screen and (min-width: 1200px) {
    @include home_lg;
}
